﻿<Window x:Class="SmallProgram.Controls.PublishProgramDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        WindowStartupLocation="CenterScreen" WindowStyle="SingleBorderWindow" ResizeMode="NoResize" SizeToContent="WidthAndHeight" ShowInTaskbar="False"
        Title="Small Program">
    <DockPanel>
        <Border BorderBrush="#B27C7C7C" BorderThickness="0">
            <StackPanel Orientation="Vertical" Background="#FFFFFFFF">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Image Name="iconImageControl" Grid.Column="0" Width="64" Height="64" VerticalAlignment="Top" Margin="8" Source="/SmallProgram.Controls;component/Resources/Information.png" />
                    <StackPanel Orientation="Vertical" Grid.Column="1" VerticalAlignment="Center">
                        <TextBlock Margin="4" TextWrapping="WrapWithOverflow" TextBlock.FontFamily="Segoe UI" TextBlock.FontSize="16" TextBlock.Foreground="#FF002AB5" Text="Your program was published to the web." />
                        <StackPanel Name="optionalContentControl" Margin="4">
                            <TextBlock Margin="0,0,4,4" Text="Below is the ID for your program that you can share with friends." />
                            <TextBox Name="saveId" IsReadOnly="True" FontSize="32" FontFamily="Courier New" FontWeight="Bold" Foreground="#FF696969" Margin="0,4,4,4" MinWidth="300" />
                            <TextBlock Margin="0,0,4,4">
                            <TextBlock Text="You can view your program at: " /> <Hyperlink Click="OnClickHyperlink"><TextBlock Name="hyperlink" /></Hyperlink></TextBlock>
                            <Expander Name="expander" Margin="0,4,0,4" Expanded="OnExpanderChanged" Collapsed="OnExpanderChanged" Visibility="Hidden">
                                <Expander.Header>
                                    <TextBlock TextBlock.FontWeight="Bold" Text="Add More Details" />
                                </Expander.Header>
                                <StackPanel>
                                    <TextBlock Margin="0,4,4,0" Text="Program Title (255 max)" />
                                    <TextBox Name="titleTextBox" FontWeight="Bold" Margin="0,4,4,4" MinWidth="300" MaxLength="255" />
                                    <TextBlock Margin="0,4,4,0" Text="Brief Description (1024 max)" />
                                    <TextBox Name="descriptionTextBox" Margin="0,4,4,4" MinWidth="300" TextWrapping="Wrap" AcceptsReturn="True" MinLines="3" MaxLines="3" MaxLength="1024" VerticalScrollBarVisibility="Auto" />
                                    <TextBlock Margin="0,4,4,0" Text="Category" />
                                    <ComboBox Name="categoryCombo" Margin="0,4,4,4" MinWidth="160" SelectedIndex="0">
                                        <TextBlock Tag="Miscellaneous" Text="Miscellaneous" />
                                        <TextBlock Tag="Game" Text="Game" />
                                        <TextBlock Tag="Sample" Text="Sample" />
                                        <TextBlock Tag="Exercise" Text="Exercise" />
                                        <TextBlock Tag="Example" Text="Example" />
                                        <TextBlock Tag="Math" Text="Math" />
                                        <TextBlock Tag="Fun" Text="Fun" />
                                    </ComboBox>
                                </StackPanel>
                            </Expander>
                        </StackPanel>
                    </StackPanel>
                </Grid>
                <Border HorizontalAlignment="Stretch" Margin="0, 8, 0, 0" Padding="4" BorderBrush="#B2CBCBCB" BorderThickness="0,1,0,0" Background="#B2EBEBEB">
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                        <Button Name="closeButton" MinWidth="60" Margin="4" IsCancel="True" IsDefault="True" Content="Close" Click="OnClickClose" />
                    </StackPanel>
                </Border>
            </StackPanel>
        </Border>
    </DockPanel>
</Window>
